package com.sixth.docker.controller;

import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sixth.core.entity.Medicines;
import com.sixth.core.entity.Registration;
import com.sixth.core.vo.R;
import com.sixth.docker.service.MedicinesService;
import com.sixth.docker.vo.MedicinesVo;
import com.sixth.docker.vo.RegistrationVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @program: sixth-hospital-parent
 * @description:
 * @author: 赵庆龙
 * @create: 2024-08-20 09:56
 **/
@RestController
@RequestMapping("/doctor/medicines")
public class MedicinesController {
    @Autowired
    private MedicinesService medicinesService;
    @ApiOperation(value = "分页查找")
    @PostMapping("/selectByPage")
    public R<IPage<Medicines>> selectByPage(@RequestBody MedicinesVo medicinesVo){
        return medicinesService.selectByPage(medicinesVo);

    }


}
